#include<stdio.h>
#include<windows.h>

int main()
{
	int i,n;
	n=0;
	for (i=2000;i<=3000;i++)
		if(((i%4==0)&&(i%100!=0))||(i%400==0))		
            n++;
	printf("%d\n",n);
	system("pause");
	return 0;
}